/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

import java.math.BigInteger;
import java.security.SecureRandom;

/**
 *
 * @author Neo
 */
public class RandomGenerator {

    private static SecureRandom random = new SecureRandom();

    public static String randomString() {
        return new BigInteger(30, random).toString(10);
    }
    
    public static String randomString(int chars) {
        return new BigInteger(30, random).toString(chars);
    }
    public static void main(String[] args) {
       RandomGenerator.randomString();
    }
}
